

#ifndef __KEY_H
#define __KEY_H

#include "KeyDriver.h"


#define KEY_VALID 1
#define KEY_UNVALID 0


typedef void (*fptr_key) (void);

typedef struct
{
	unsigned char KeyPushFlag;
       unsigned char KeyProperty;
       fptr_key KeyFuncExecute;
       
}StructKeyRunParameter;

extern StructKeyRunParameter gsKeyRunParameter;


void KeyInit(void);
void KeyExecute(void);
void KeyCheckPushDownIRQ(void);
void KeyRegisterFunctionHandler(fptr_key fp);
void KeyCheckPushTime(void);

#endif

